<?php
$tm = $_GET['tm'];
$tklx = $_GET['tklx'];
include("database.php");
//单个测试数据添加
$sql = "SELECT * FROM main WHERE num = '".$tm."'";
$res=$conn->query($sql);
$data=$res->fetch_all();
$sccs=$data[0][6]+1;
$sql = "UPDATE main SET cscstj = '$sccs' WHERE num = '$tm'";
$res=$conn->query($sql);
echo json_encode($sccs);
$conn->close();
?>
